package com.stool.gram.config;

import com.stool.gram.domain.DLmodels;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(DLmodelsProperties.class)
public class DLmodelsConfig {

    @Autowired
    DLmodelsProperties dLmodelsProperties;

    @Bean
    public DLmodels getDLmodels(){
        // System.out.println(dLmodelsProperties.getDir());
        return new DLmodels(dLmodelsProperties.getDir());
    }
}
